home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Together in Jesus: 1st Reconciliation Computer Fun
/
Together in Jesus - First Reconciliation - Computer Fun.iso
/
word_snatcher_new.swf
/
scripts
/
frame_88
/
DoAction.as
Wrap
Text File
|
2007-11-27
|
6KB
|
264 lines
this.heaven_mc.onPress = function()
{
this.startDrag();
};
this.heaven2_mc.onPress = function()
{
this.startDrag();
};
this.hallowed_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.name_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.kingdom_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.will_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.heaven_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.heaven2_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.bread_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.forgive_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.trespass_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.temptation_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.evil_mc.onPress = function()
{
this.startDrag();
this.swapDepths(this.getNextHighestDepth());
};
this.heaven_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target1_mc) == true)
{
soundTrumpet.start();
gotoAndStop(89);
heaven_mc._visible = false;
heaven2_mc.swapDepths(getNextHighestDepth());
}
else
{
soundMournfultrumpet.start();
heaven_mc._y = heaven1_mc._y;
heaven_mc._x = heaven1_mc._y;
}
};
this.hallowed_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target2_mc) == true)
{
soundCheering1.start();
gotoAndStop(91);
hallowed_mc._y = hallowed1_mc._y;
hallowed_mc._x = hallowed1_mc._x;
}
else
{
soundMournfultrumpet.start();
hallowed_mc._y = hallowed1_mc._y;
hallowed_mc._x = hallowed1_mc._x;
}
};
this.name_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target3_mc) == true)
{
soundTrumpet.start();
gotoAndStop(92);
name_mc._y = name1_mc._y;
name_mc._x = name1_mc._x;
}
else
{
soundBuoing.start();
name_mc._y = name1_mc._y;
name_mc._x = name1_mc._x;
}
};
this.kingdom_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target4_mc) == true)
{
soundCheering1.start();
gotoAndStop(92);
kingdom_mc._y = kingdom1_mc._y;
kingdom_mc._x = kingdom1_mc._x;
}
else
{
soundCrash3.start();
kingdom_mc._y = kingdom1_mc._y;
kingdom_mc._x = kingdom1_mc._x;
}
};
this.will_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target5_mc) == true)
{
soundTrumpet.start();
gotoAndStop(93);
will_mc._y = will4_mc._y;
will_mc._x = will4_mc._x;
}
else
{
soundCrash3.start();
will_mc._y = will4_mc._y;
will_mc._x = will4_mc._x;
}
};
this.heaven2_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target6_mc) == true)
{
soundCheering1.start();
gotoAndStop(94);
heaven2_mc._y = heaven1_mc._y;
heaven2_mc._x = heaven1_mc._x;
}
else
{
soundMournfultrumpet.start();
heaven2_mc._y = heaven1_mc._y;
heaven2_mc._x = heaven1_mc._x;
}
};
this.bread_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target7_mc) == true)
{
soundTrumpet.start();
gotoAndStop(95);
bread_mc._y = bread1_mc._y;
bread_mc._x = bread1_mc._x;
}
else
{
soundMournfultrumpet.start();
bread_mc._y = bread1_mc._y;
bread_mc._x = bread1_mc._x;
}
};
this.forgive_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target8_mc) == true)
{
soundCheering1.start();
gotoAndStop(96);
forgive_mc._y = forgive1_mc._y;
forgive_mc._x = forgive1_mc._x;
}
else
{
soundCrash3.start();
forgive_mc._y = forgive1_mc._y;
forgive_mc._x = forgive1_mc._x;
}
};
this.trespass_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target9_mc) == true)
{
soundTrumpet.start();
gotoAndStop(97);
trespass_mc._y = trespass1_mc._y;
trespass_mc._x = trespass1_mc._x;
}
else
{
soundMournfultrumpet.start();
trespass_mc._y = trespass1_mc._y;
trespass_mc._x = trespass1_mc._x;
}
};
this.temptation_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target10_mc) == true)
{
soundCheering1.start();
gotoAndStop(98);
temptation_mc._y = temptation1_mc._y;
temptation_mc._x = temptation1_mc._x;
}
else
{
soundCrash3.start();
temptation_mc._y = temptation1_mc._y;
temptation_mc._x = temptation1_mc._x;
}
};
this.evil_mc.onRelease = function()
{
this.stopDrag();
if(this.hitTest(target12_mc) == true)
{
soundTrumpet.start();
gotoAndStop(99);
evil_mc._y = evil1_mc._y;
evil_mc._x = evil1_mc._x;
this._visible == false;
this._visible = false;
will_mc._visible = false;
will_mc.swapDepths(1);
evil_mc.swapDepths(1);
temptation_mc.swapDepths(1);
trespass_mc.swapDepths(1);
forgive_mc.swapDepths(1);
bread_mc.swapDepths(1);
heaven2_mc.swapDepths(1);
kingdom_mc.swapDepths(1);
hallowed_mc.swapDepths(1);
heaven_mc.swapDepths(1);
}
else
{
soundMournfultrumpet.start();
evil_mc._y = evil1_mc._y;
evil_mc._x = evil1_mc._x;
}
};